package com.easidea.tim.flex.bean
{
	import mx.collections.ArrayCollection;
	
	[RemoteClass(alias="com.easidea.tim.util.Page")]
	[Bindable]
	public class Page
	{
		public var start:int; 
		public var totalCount:int;
		public var totalPageCount:int;
		public var pageSize:int = 30;
		public var list:ArrayCollection;
		public var currentPageNo:int = 1;
		
		/**
		 * 该页是否有下一页.
		 */
		public function hasNextPage():Boolean {
			return this.currentPageNo <= this.totalPageCount - 1;
		}
	
		/**
		 * 该页是否有上一页.
		 */
		public function hasPreviousPage():Boolean {
			return this.currentPageNo > 1;
		}
		
	}
}